package com.couldsail.takeaway.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@Builder
@TableName("user_coupon")
@Schema(description = "用户优惠券关联实体")
public class UserCoupon {
    @Schema(description = "主键ID")
    private String id;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "店铺ID")
    private String shopId;

    @Schema(description = "优惠券ID")
    private String couponId;

    @Schema(description = "优惠券状态：未使用-UNUSED, 已使用-USED, 已过期-EXPIRED")
    private String status;  // UNUSED, USED, EXPIRED

    @Schema(description = "获取时间")
    private LocalDateTime obtainedTime;

    @Schema(description = "使用时间")
    private LocalDateTime usedTime;
} 